<?php
header("content-type:text/html;charset=utf-8");

if(!$_REQUEST['color']){
  die('<script>alert("参数出错！");</script>');
}

if(!file_exists('../css/'.$_REQUEST['color'].'/style.css')){
  die('<script>alert("该风格模板尚未安装！");</script>');
}else{
  setcookie('162100bbs_style',$_REQUEST['color'],time()+30*24*60*60,'/');
  die('<script>parent.location.href="../index.php";</script>');
}




?>